<template lang="">

 
 
   <button @click='hanshu()' v-show='yi' class='ass'>登入页面</button>
    <router-view></router-view>
    
     <!-- <router-link to='/login'>登入页面</router-link> -->
    
</template>
<script>


export default {
    data(){
      return {
        yi: true
      }
    },
      methods:{
        hanshu(){
      
            this.$router.push('/login')
            this.yi= ! this.yi
            
        }
      },
      components:{
        layout
      }
     
    
}
</script>
<style lang="css">
*{
  padding: 0px;
  margin: 0px;
}
   
       .ass{
        width: 200px;
        height: 50px;
        background-color: aliceblue;
        border-radius: 20px;
      position: absolute;
      left: 43%;
      top: 20%;
      z-index: 999;
       }
</style>

